<template>
  <div class="hello-main">
     <div class="header">
        {{msg}}
        <div class="item"></div>
     </div>
     <el-button @click="getData">网络请求</el-button>
    
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App'
    }
  },
  methods: {
    async getData() {
      let dataes = {"token":"","uid":"","platform":"ued","device":"pc"}
      let res = await this.axios.post(this.api.getJackpot,dataes)
      if (res){
        console.log("结果:",res)
      }

    },
    init(...aa) {
      let arr = [20,25,33];
      let newArr = arr.filter(function(num,index,arr){
        if(num%2===0){
          return num*2
        }
      })
      console.log(newArr,aa)
    }
  },
  mounted(){
    // console.log(this.$.getTime())
    this.init(11,22,33)
  }
}
</script>

<style lang="scss">
   .hello-main{
     .header{
        position: relative;
        background: $tm;
        color: green;
        @include box-sizing(border-box);
        .item{
           
        }
     }
   }
</style>
